﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Engine.Transactions.*;
    import Classes.util.*;
    import Display.*;

    public class TBuyRemainingCrew extends Transaction {

        private static var m_alreadySeenThisSession:Boolean = false;

        private var m_targetObjectId:Number;
        private var m_gateName:String;

        public function TBuyRemainingCrew(_arg1:Number, _arg2:String=null){
            this.m_targetObjectId = _arg1;
            this.m_gateName = _arg2;
        }
        override public function perform():void{
            signedCall("UserService.purchaseRemainingCrew", this.m_targetObjectId, this.m_gateName);
        }
        override protected function onComplete(_arg1:Object):void{
            if ((((_arg1 == "purchaseRemainingCrew_refresh")) && (!(m_alreadySeenThisSession)))){
                UI.displayMessage(ZLoc.t("Main", "FriendsRespondedAlready"), GenericPopup.TYPE_OK, GameUtil.refreshUserState, "", true);
                m_alreadySeenThisSession = true;
            };
        }

    }
}//package Transactions 
